<extend name="Public/base"/>
<block name="body">
  <form method="post" class="form-horizontal J_ajaxForm" action="{:U('')}">
       <div class="tab-content">
  
          <div class="form-group">
            <label class="col-sm-2 control-label "> <span class="red">*</span>标题 </label>
            <div class="col-sm-10">
              <input type="text"  name="title" value="{$data.title}" class="input-xxlarge  " />
               </div>
          </div>

           <div class="space-4"></div>
           <div class="form-group">
               <label class="col-sm-2 control-label "> <span class="red">*</span> 结束时间 </label>
               <div class="col-sm-10">
                   <input type="text"  name="endtime" value="{$data.endtime}" class="J_datetime input-medium " />
               </div>
           </div>
           <div class="space-4"></div>


           <div class="form-group">
               <label class="col-sm-2 control-label "><span class="red">*</span> 试吃产品 </label>
               <div class="col-sm-10">
                   <input type="text"  name="product" value="{$data.product}" class="input-xxlarge " />
               </div>
           </div>
           <div class="space-4"></div>

           <div class="form-group">
               <label class="col-sm-2 control-label "> <span class="red">*</span>商品ID </label>
               <div class="col-sm-10">
                   <input type="text"  name="product_id" value="{$data.product_id}" class="input-small  " />
               </div>
           </div>


           <div class="form-group">
               <label class="col-sm-2 control-label "><span class="red">*</span> 总量 </label>
               <div class="col-sm-10">
                   <input type="text"  name="kucun" value="{$data.kucun}" class="input-small  " />
               </div>
           </div>
           <div class="space-4"></div>

           <div class="form-group">
               <label class="col-sm-2 control-label "><span class="red">*</span> 没人限领数量 </label>
               <div class="col-sm-10">
                   <input type="text"  name="xian_num" value="{$data.xian_num}" class="input-small  " />
               </div>
           </div>
           <div class="space-4"></div>

           <div class="form-group">
               <label class="col-sm-2 control-label "> <span class="red">*</span>单位 </label>
               <div class="col-sm-10">
                   <input type="text"  name="danwei" value="{$data.danwei}" class="input-medium " />
               </div>
           </div>
           <div class="space-4"></div>


           <div class="form-group">
               <label class="col-sm-2 control-label "> <span class="red">*</span>  封面 </label>
               <div class="col-sm-10">
                   <att model="product"  action="img"  field="thumb" value="data[thumb]"/>
               </div>
           </div>

           <div class="space-4"></div>

           <div class="form-group">
               <label class="col-sm-2 control-label "> <span class="red">*</span>详情 </label>
               <div class="col-sm-10">
                   <ueditor name="content"  width="750" height="400">{$data.content}</ueditor>
               </div>
           </div>
















       </div>
       <if condition="$edit">
     <input type="hidden"  name="id"   value="{$data.id}"  /></if>
      <div class="form-actions">
          <button class="btn btn-info ajax-post"   target-form="J_ajaxForm" type="submit">  <if condition="$edit">更新<else/>提交</if></button>

      	 <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
      </div>
      
      </div>
    </form>
</block>
<block name="plugin-script">
    <script src="__JS__/content.js"></script>
    <script src="__JS__/ueditor/ueditor.config.js"></script>
    <script src="__JS__/ueditor/ueditor.all.min.js"></script>
</block>